package com.example.xitong;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;

public class Wd extends Fragment {
ConstraintLayout constraintLayout,c1,c13,c12;
View view;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_wd, container, false);
        setView(view);
        return view;

    }
    public void setView(View view){
        constraintLayout = view.findViewById(R.id.con11);
        c1=view.findViewById(R.id.c123);
        c13=view.findViewById(R.id.c1234);
        c12 = view.findViewById(R.id.c13);
        constraintLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(getActivity(),MyDownLoad.class);
                startActivity(intent);
            }
        });
        c1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(getActivity(),yixue.class);
                startActivity(intent);

            }
        });
        c13.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(getActivity(),shoucang.class);
                startActivity(intent);
            }
        });
        c12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                intent.setClass(getActivity(),Wdgz.class);
                startActivity(intent);
            }
        });
    }
}